package com.egg.mall.entity.sku.orders;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.egg.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * <p>
 * 订单SKU
 * </p>
 *
 * @author east
 * @since 2022-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "mall_sku_orders_link_sku_snapshot")
@ApiModel(value = "SkuOrdersLinkSnapshotSku对象", description = "SKU订单关联SKU快照")
public class SkuOrdersLinkSkuSnapshot extends BaseEntity {


    @ApiModelProperty(value = "订单ID")
    @TableField(value = "order_id")
    private Long orderId;

    @ApiModelProperty(value = "快照ID", notes = "由于SKU可能存在变动, 获取SKU的具体信息从快照中获取")
    @TableField(value = "sku_snapshot_id")
    private Long skuSnapshotId;

    @ApiModelProperty(value = "数量")
    @TableField(value = "quantity")
    private Integer quantity;


}
